package com.anyou.mall.goo.goodsSku.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 商品sku规格组合对象 goo_goods_sku
 *
 * @author xq
 * @date 2022-03-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "商品sku规格组合")
@TableName(value = "goo_goods_sku")
public class GooGoodsSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品sku编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("商品sku编号")
    private Long goodsSkuId;

    /** 商品编号 */
    @ApiModelProperty("商品编号")
    @Excel(name = "商品编号")
    private Long goodsId;

    /** 规格组合值（json组装规格id和规格值id） */
    @ApiModelProperty("规格组合值（json组装规格id和规格值id）")
    @Excel(name = "规格组合值", readConverterExp = "j=son组装规格id和规格值id")
    private String specs;

    /** 商品价格 */
    @ApiModelProperty("商品价格")
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品库存 */
    @ApiModelProperty("商品库存")
    @Excel(name = "商品库存")
    private Long goodsStock;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic( value = "0",delval = "2" )
    private String delFlag;


    @ApiModelProperty("规格id（规格id，多个以英文逗号分割）")
    private String specsIds;

    /**  */
    @ApiModelProperty("规格名字（规格名字，多个以英文逗号分割）")
    private String specsNames;


}
